package com.zlc.common.core.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zlc.common.common.service.BaseServiceImpl;
import com.zlc.common.core.business.model.entity.StoneReimbursementProcess;
import com.zlc.common.core.business.mapper.StoneReimbursementProcessMapper;
import com.zlc.common.core.business.model.vo.StoneReimbursementProcessVo;
import com.zlc.common.core.business.service.StoneReimbursementProcessService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author  zl
 * @date 2025-10-14 
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class StoneReimbursementProcessServiceImpl extends BaseServiceImpl<StoneReimbursementProcessMapper, StoneReimbursementProcess, StoneReimbursementProcessVo> implements StoneReimbursementProcessService{

    @Override
    public StoneReimbursementProcessVo queryByProcessInstanceId(String processInstanceId) {
        LambdaQueryWrapper<StoneReimbursementProcess> wrapper = wrapper()
                .eq(StoneReimbursementProcess::getProcessInstanceId, processInstanceId);
        return queryOne(wrapper);
    }
}
